import { ref } from 'vue'
import { defineStore } from 'pinia'

export const useAnnouncementsStore = defineStore('announcements', () => {
  const dialogTableVisible = ref(false)
  const dialogFormVisible = ref(false)
  const dialogBoardVisible = ref(false)
  const AnnForm = ref([])
  const gridData = ref([])
  const gridData2 = ref([])

  /* 1、设置空的图层 --设置画布 */
  const source1 = new ol.source.Vector({
    features: []
  })

  return {
    dialogTableVisible,
    dialogFormVisible,
    AnnForm,
    source1,
    gridData,
    dialogBoardVisible,
    gridData2
  }
})
